home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / ishft.z / ishft
Encoding:
Text File  |  1998-10-30  |  1.8 KB  |  48 lines

  1. ISHFT(3I)                                              Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      IISSHHFFTT - Performs a logical shift
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, and IRIX systems
  12.  
  13. SSTTAANNDDAARRDDSS
  14.      Fortran 90
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The IISSHHFFTT intrinsic function performs a logical shift.  It accepts the
  18.      following arguments:
  19.  
  20.      _i    Must be of type integer.
  21.  
  22.      _s_h_i_f_t
  23.           Must be of type integer.  The absolute value of _s_h_i_f_t must be
  24.           less than or equal to BBIITT__SSIIZZEE((_i)).
  25.  
  26.      IISSHHFFTT is an elemental function.  The name of this intrinsic cannot be
  27.      passed as an argument.
  28.  
  29. RREETTUURRNN VVAALLUUEESS
  30.      The result type and type parameter are the same as _i.  The result has
  31.      the value obtained by shifting the bits of _i by _s_h_i_f_t positions.  If
  32.      _s_h_i_f_t is positive, the shift is to the left; if _s_h_i_f_t is negative, the
  33.      shift is to the right; and if _s_h_i_f_t is zero, no shift is performed.
  34.      Bits shifted out from the left or from the right, as appropriate, are
  35.      lost.  Zeros are shifted in from the opposite end.  The bit model
  36.      defines the interpretation of an integer value as a sequence of bits.
  37.      For more information on the bit model, see the MMOODDEELLSS(3I) man page.
  38.  
  39. EEXXAAMMPPLLEESS
  40.      IISSHHFFTT ((33,, 11)) has the result 6.
  41.  
  42. SSEEEE AALLSSOO
  43.      MMOODDEELLSS(3I)
  44.  
  45.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  46.      printed version of this man page.
  47.  
  48.